!function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=46)}({"+gHu":function(t,e){!function(t){function e(){this.placeholders={},this.data={}}e.prototype={init:function(){var t=this;$(".js-placeholder").each(function(){var e=$(this).data("name");t.placeholders[e]||(t.placeholders[e]=[]),t.placeholders[e].push(this)})},reload:function(t){var e=this;$.isArray(t)||(t=[t]);for(var n,o=0;n=t[o];o++)this.placeholders[n]||t.splice(o,1);this.getData(t).done(function(t){e.data=t,$.each(t,function(t,n){n&&e.placeholders[t]&&$.each(e.placeholders[t],function(t,e){$(e).html(n)})})})},getValue:function(t,e){return void 0!==this.data[t]?this.data[t]:e},getData:function(t){var e=$.Deferred();return t.length?$.ajax("/actions/ajax/reload/data",{data:{names:t},type:"post",dataType:"json",success:function(t){t.result&&t.data?e.resolve(t.data):e.reject(t)},error:function(){e.reject()}}):e.reject(),e.promise()}},window.$liveReload=new e,$(function(){$liveReload.init()})}()},"/xip":function(t,e,n){(function(t){!function(t,e,n){"use strict";var o={0:{angle:0},1:{angle:315},2:{angle:270},3:{angle:225},4:{angle:180},5:{angle:135},6:{angle:90},7:{angle:45}},i=function(e,n,o){this.currentAngle=0,this.wheelImagePath=`/files/${n}/img/fortune/sectors.${o}?1`,this.wheelImage=null,this.canvas="#wheel-of-fortune",this.state=0,this.spinInterval=null,this.stateData=e.stateData,this.requestTimeout=1e4,this.requestTimeoutTimer=null,this.options={},this.defaultOptions={roundTime:2e3,fps:60,beforeStopMinTime:2e3},e=e||{},t.extend(this.options,this.defaultOptions,e)};(i.prototype=t.extend({},Events,{STATE_INIT:0,STATE_WHEEL_STOPPED:1,STATE_WHEEL_SPINNED:2,STATE_WHEEL_STOPPING:3,STATE_WHEEL_ABORTED:4})).init=function(){var e=this;this.wheelImage=this.preloadImage(this.wheelImagePath,function(){e.rotate.call(e,0),e.state=i.prototype.STATE_WHEEL_STOPPED}),t(".fortune-wheel__active-sector").hide(),this.updateBasedOnStateData(),this.bindEvents()},i.prototype.updateBasedOnStateData=function(){var e,n=null;this.stateData.hasOwnProperty("sector")&&0===parseInt(this.stateData.sector)?n="Пустой сектор. Попробуйте еще раз!":this.stateData.hasOwnProperty("prizeName")&&(n="Ваш выигрыш "+this.stateData.prizeName+"! Крутить еще?"),e=this.stateData.freeSpinsCount>0?"Крутить колесо":"Крутить колесо за "+this.stateData.costFormatted,t(".js-spin-win-message").text(n).toggle(null!==n),t(".js-free-wheel-spin-count").text(this.stateData.freeSpinsCount>0?this.stateData.freeSpinsCount:""),t(".js-spin-notice-message").text(this.stateData.notice).toggle(this.stateData.hasOwnProperty("notice")),t(".js-fortune-button").text(e),t(".fortune-wheel__button").text(""),0==this.stateData.freeSpinsCount?(t(".fortune-open__spins-number").css("display","none"),t(".js-free-wheel-spin-count").hide()):t(".js-free-wheel-spin-count").show()},i.prototype.bindEvents=function(){var e=this;t(document).off("click",".js-fortune-button").on("click",".js-fortune-button",function(){e.state!==i.prototype.STATE_WHEEL_STOPPED&&e.state!==i.prototype.STATE_WHEEL_ABORTED||e.doSpin.call(e,t(this))})},i.prototype.doSpin=function(){var e=this;this.drawSpin(),t(".fortune-wheel__active-sector").hide(),t(".js-spin-win-message").text("").hide(),t(".js-spin-notice-message").text("").hide(),this.requestTimeoutTimer=setTimeout(function(){e.abort.call(e)},this.requestTimeout),this.updateSpinButtonState(),this.lastSpinRequest=t.ajax({type:"POST",url:"/actions/ajax/spin_wheel_of_fortune",dataType:"json",data:{spin:!0}}).done(function(t){clearTimeout(e.requestTimeoutTimer),!0===t.result?setTimeout(function(){e.stateData=t.data,e.stopAtSector.call(e,e.stateData.sector),$liveReload.reload(["account","account_main","account_bonus","account_points"])},e.options.beforeStopMinTime):e.onError.call(e,t)}).fail(function(t,n){e.updateSpinButtonState.call(e),clearTimeout(e.requestTimeoutTimer),"abort"!==n&&("error"===n?e.abort.call(e):e.onError.call(e,null))})},i.prototype.onError=function(t){this.stopAtSector(0);var e="wheel_fortune_error";t&&"NO_MONEY"===t.error&&(e="wheel_fortune_nomoney"),t&&"ONLY_BONUSES"===t.error&&(e="wheel_fortune_onlybonuses"),t&&"NO_AUTH"===t.error&&(e="go_auth"),this.popupShow(e,{})},i.prototype.updateSpinButtonState=function(){var e=t(".js-fortune-button");switch(this.state){case i.prototype.STATE_WHEEL_STOPPED:case i.prototype.STATE_WHEEL_ABORTED:e.prop("disabled",!1),e.removeClass("disabled");break;case i.prototype.STATE_INIT:case i.prototype.STATE_WHEEL_SPINNED:case i.prototype.STATE_WHEEL_STOPPING:e.prop("disabled",!0),e.addClass("disabled")}},i.prototype.popupShow=function(t,e){n?n.show(t,!1,e):popup_show(t,e)},i.prototype.drawSpin=function(){var e=this,n=this.options.roundTime/this.options.fps,r=360/n;e.state=i.prototype.STATE_WHEEL_SPINNED,this.spinInterval=setInterval(function(){e.state===i.prototype.STATE_WHEEL_STOPPING&&e.currentAngle+r>=o[e.stopSector].angle&&e.currentAngle-r360&&(e.currentAngle-=360),e.rotate.call(e,e.currentAngle))},n)},i.prototype.stopAtSector=function(t){this.state!==i.prototype.STATE_WHEEL_STOPPING&&(this.state=i.prototype.STATE_WHEEL_STOPPING,this.stopSector=t)},i.prototype.abort=function(){this.state!==i.prototype.STATE_WHEEL_STOPPING&&(this.state=i.prototype.STATE_WHEEL_ABORTED,this.stopSector=0,this.lastSpinRequest.abort(),this.showErrorMessage())},i.prototype.showErrorMessage=function(){t(".js-spin-win-message").html("Что-то пошло не так. Пожалуйста, обновите страницу.
").show()},i.prototype.rotate=function(t){var e=this.getCanvas(),n=this.getDrawContext();n.save(),n.clearRect(0,0,e.width,e.height),n.translate(e.width/2,e.height/2),n.rotate(this.DegToRad(t)),n.drawImage(this.wheelImage,-this.wheelImage.width/2,-this.wheelImage.height/2),n.restore()},i.prototype.preloadImage=function(t,e){e=e||function(){};var n=new Image;return n.src=t,n.onload=e,n},i.prototype.getCanvas=function(){var e=t(this.canvas);if(e.length>0)return e[0];throw new Error("No canvas")},i.prototype.getDrawContext=function(){var t=this.getCanvas().getContext("2d");if(!t)throw new Error("No draw context");return t},i.prototype.DegToRad=function(t){return t*Math.PI/180},window.WheelOfFortune=i}($,0,window.$popupBuilder||null)}).call(this,n("CNqx"))},"3ldl":function(t,e){!function(t){function e(){}e.prototype={init:function(){var t=this;$(document).on("click",".js-log",function(){var e=$(this).attr("href");e?t.log($(this).data("log"),function(){location.href=e}):t.log($(this).data("log"))})},getCallback:function(t){var e=this;return function(){e.log(t)}},log:function(t,e){var n=new Image;if(n.src="/actions/log?"+t,void 0!=e)var o=setInterval(function(){n.complete&&(clearInterval(o),e())},50)}},window.$logger=new e,$(function(){$logger.init()})}(),window.logAndGo=function(t,e,n){void 0!==e?$logger.log(t,function(){void 0!==n&&"blank"==n?window.open(e,"_blank").focus():location.href=e}):$logger.log(t)}},"3nrl":function(t,e){!function(t){function e(e,n,o,i,r,s,a){this.seconds=0|e,this.$placeholder=$(n),this.step=o||1,this.started=!1,this.unpackTo=i||"DHMS",this.toCase="nominative",this.leadingZero=null==s||s,this.daysLeadingZero=null==a?this.leadingZero:a,r!=t&&(this.toCase=r)}e.prototype.start=function(){if(this.started)return this;this.updateUI();var t=this.seconds%this.step;60==this.step&&t++;var e=this;return window.setTimeout(function(){e.tick(t),e.interval=window.setInterval(function(){e.tick(e.step)},1e3*e.step)},1e3*t),this.started=!0,this},e.prototype.tick=function(t){this.seconds-=t,this.seconds<=0&&(this.seconds=0,this.stop(),this.callback&&this.callback.call(this.callbackThisArg)),this.updateUI()},e.prototype.update=function(t){return this.seconds=0|t,this},e.prototype.updateUI=function(){var t="get"+this.unpackTo,e="function"==typeof this[t]?this[t]():this.getDHMS();if(this.hack&&(e=this.hack(e)),0!==$("body").find(this.$placeholder).length){var n=this.leadingZero;this.leadingZero=this.daysLeadingZero,this.$placeholder.find(".countdown-d").text(this.f(e.days)),this.leadingZero=n,this.$placeholder.find(".countdown-h").text(this.f(e.hours)),this.$placeholder.find(".countdown-m").text(this.f(e.minutes)),this.$placeholder.find(".countdown-s").text(this.f(e.seconds)),"accusative"==this.toCase?(this.$placeholder.find(".countdown-d-label").text(plural(e.days,[__("дня"),__("дней"),__("дней")])),this.$placeholder.find(".countdown-h-label").text(plural(e.hours,[__("часа"),__("часов"),__("часов")])),this.$placeholder.find(".countdown-m-label").text(plural(e.minutes,[__("минуту"),__("минуты"),__("минут")])),this.$placeholder.find(".countdown-s-label").text(plural(e.seconds,[__("секунду"),__("секунды"),__("секунд")]))):"genitive"==this.toCase?(this.$placeholder.find(".countdown-d-label").text(plural(e.days,[__("дня"),__("дней"),__("дней")])),this.$placeholder.find(".countdown-h-label").text(plural(e.hours,[__("часа"),__("часов"),__("часов")])),this.$placeholder.find(".countdown-m-label").text(plural(e.minutes,[__("минуты"),__("минут"),__("минут")])),this.$placeholder.find(".countdown-s-label").text(plural(e.seconds,[__("секунды"),__("секунд"),__("секунд")]))):(this.$placeholder.find(".countdown-d-label").text(plural(e.days,[__("день"),__("дня"),__("дней")])),this.$placeholder.find(".countdown-h-label").text(plural(e.hours,[__("час"),__("часа"),__("часов")])),this.$placeholder.find(".countdown-m-label").text(plural(e.minutes,[__("минута"),__("минуты"),__("минут")])),this.$placeholder.find(".countdown-s-label").text(plural(e.seconds,[__("секунда"),__("секунды"),__("секунд")])))}else this.stop(!0)},e.prototype.getDHMS=function(){return{days:~~(this.seconds/86400),hours:~~(this.seconds%86400/3600),minutes:~~(this.seconds%86400%3600/60),seconds:this.seconds%86400%3600%60}},e.prototype.getHMS=function(){return{days:0,hours:~~(this.seconds/3600),minutes:~~(this.seconds%3600/60),seconds:this.seconds%3600%60}},e.prototype.timeIsOver=function(){return this.seconds<=0},e.prototype.f=function(t){return t<10&&this.leadingZero?"0"+t.toString():t},e.prototype.onCountdownEnd=function(t,e){return this.callback=t,this.callbackThisArg=e,this},e.prototype.setHack=function(t){return this.hack=t,this},e.prototype.stop=function(t){window.clearInterval(this.interval),this.interval=null,this.started=!1,!t&&this.onStopCallback&&this.onStopCallback()},e.prototype.addPlaceholder=function(t){return this.$placeholder=this.$placeholder.add(t),this},window.Countdown=e}(),function(t){var e={},n=0;window.$countdownManager={rebind:function(){return this.bind(".js-countdown")},bind:function(t){var o=$(t);return 0==o.length?this:(o.each(function(t,o){var i=$(o),r=i.data("name")||n,s=i.data("seconds"),a=i.data("step"),c=i.data("unpack-to"),u=!1;void 0!=i.data("accusative")&&(u=!0),void 0===e[r]?(e[r]=new Countdown(s,i,a,c,u),n++):e[r].addPlaceholder(i),e[r].start()}),this)},remove:function(t){this.fetch(t)&&(e[t].stop(),delete e[t],n--)},fetch:function(t){return e[t]},countdownsCount:function(){return n}}}(),$(function(){$countdownManager.rebind(),$(window).on("load ajax_page_load",function(){$countdownManager.rebind()})})},46:function(t,e,n){n("IEtx"),n("muUI"),n("KPGs"),n("GjIb"),n("EZrL"),n("8Dlc"),n("87uk"),n("3nrl"),n("JByS"),n("KLHU"),n("H6AC"),n("C/lh"),n("I68K"),n("akRN"),n("+gHu"),n("3ldl"),n("FABa"),n("vwUM"),n("hThI"),n("EzVi"),n("aeDL"),n("uqdV"),n("5cN/"),n("pfky"),n("Axf3"),n("/xip"),t.exports=n("x8Ys")},"5cN/":function(t,e){window.Template=function(){var t=function(t,e){return t.replace(/%\(([A-Za-z0-9_|.]*)\)/g,function(t,n){var o=n.split("|");n=o[0].split(".");for(var i=e[n.shift()];n.length;)i=i[n.shift()];return o[1]&&void 0!==window[o[1]]&&(i=window[o[1]](i)),void 0!==i?i:""})};function e(t){if(!t||1!=t.nodeType&&3!=t.nodeType)if("#"==t.substr(0,1)){var e=document.getElementById(t.replace("#",""));this.template=e?e.innerHTML:""}else this.template=t;else this.template=t.innerHTML}return e.prototype.content=function(){return this.template},e.prototype.times=function(t){for(var e="",n=0;n0&&++s>a.timesCanTry?(e=!1,!1):($.ajax({url:"/actions/cashier/out/new",type:"post",dataType:"json",data:{cashout:c.getParams()},success:function(t){if(t.error)t.msg&&"confirmation"==t.msg?c.trigger("confirm"):(c.trigger("after.save",!1,t),c.check(1));else{var n=$(".cashier_item-list");n.find(".cashier_item-empty").remove(),n.prepend(new Template("#cashout_item_template").withData(t)),c.trigger("after.save",!0,t)}e=!1},error:function(t){e=!1}}),!0):(e=!1,!1))},on:function(t,e){i[t]||(i[t]=[]),i[t].push(e)},before:function(t,e){t="before."+t,c.on(t,e)},after:function(t,e){t="after."+t,c.on(t,e)},trigger:function(t,e){e=arguments?Array.prototype.slice.call(arguments,1):[];var n=!1;if(i[t])for(var o in i[t])if(i[t].hasOwnProperty(o)&&!i[t][o].apply(c,e)){n=!0;break}return!n},step:function(e){return e&&(t=e),t},onStep:function(t,e){n[t]||(n[t]=[]),n[t].push(e)},onStepNot:function(t,e){o[t]||(o[t]=[]),o[t].push(e)},check:function(e,i){var r=!1;if(n[e])for(var s in n[e])if(n[e].hasOwnProperty(s)&&!n[e][s].call(c,i)){t>e&&c.step(e),r=!0;break}t:for(var a in o)if(o.hasOwnProperty(a)){if(a==e)continue;for(var u in o[a])if(o[a].hasOwnProperty(u)&&!o[a][u].call(c,a)){t>e&&c.step(e),r=!0;break t}}!r&&e'),e.$profileWrapper.appendTo("body"),e.$loader=$('
'),e.$loader.appendTo("#js-users-profile"),$.ajax({url:"/user/profile/"+t,type:"GET",data:{block_to_render:"template-1"}}).then(function(t){e._render(t["template-1"],n),e._bindListeners()})):popup_show("go_auth")},hideAllPopups:function(){e.$profileWrapper&&(e.$profileWrapper.remove(),e.$profileWrapper=null)},doRespect:function(t){return $.ajax({url:"/actions/ajax/profile/respect/"+t,dataType:"json",context:this,success:function(t){if("ok"===t.status){var n=e.$profileWrapper.find(".js-user-respect");n.text(t.respects_count).addClass("disabled"),n.closest("div").addClass("users-profile__respect--disable").find(".js-respect-tooltip").show().find("div").html(t.respects_tooltip_message)}return!1}}),!1},_render:function(t){var n=$(t);n.css({position:"absolute",visibility:"visible",top:"50%",left:"50%","margin-left":"-220px","margin-top":"-320px","z-index":1e4}),e.$profileWrapper.html(n)},_bindListeners:function(){e.$profileWrapper.on("click",".js-user-profile-close",function(){return e.hideAllPopups(),!1}).on("click",".js-user-respect",function(){return e.doRespect($(this).data("uid")),!1});new Swiper(".js-slider-user-profile .swiper-container",{speed:700,nextButton:".js-slider-user-profile .swiper-button-next",prevButton:".js-slider-user-profile .swiper-button-prev",slidesPerView:4,spaceBetween:0,setWrapperSize:!0,runCallbacksOnInit:!0,touchRatio:0,onInit:function(){$(".js-achievement-item").on("mouseenter",function(){var t=$(this).offset(),e=$('
').html($(this).find(".js-tooltip").html());$("body").append(e),e.css({top:t.top+parseInt($(this).height())+10,left:t.left+parseInt($(this).css("width"))/2-parseInt(e.find(".tooltip_content").css("width"))/2,position:"absolute","z-index":"10001"})}).on("mouseleave",function(){$(".js-achievement-tooltip").remove()}),$(document).on("scroll",function(){$(".js-achievement-tooltip").remove()})}})}};window.UserProfile=e}()},"C/lh":function(t,e){!function(t){function e(t){this.wrapper=t,this.$container=null,this.cache={}}e.prototype={inject:function(t,e){var n=document.createElement("script");e||(e=this.wrapper),n.text=e(t),this.getContainer().append(n)},injectAll:function(t,e){var n=this;$.each(t,function(t,o){n.inject(o,e)})},injectAllBySrc:function(t,e){var n=[],o=this;return $.each(t,function(t,i){n.push(o.injectSrc(i,e))}.bind(this)),$.when.apply(this,n)},injectSrc:function(t,e){return void 0===e&&(e=!0),e&&this.cache[t]?$.Deferred().resolve().promise():$.getScript(t).done(function(){this.cache[t]=!0}.bind(this))},setDefaultWrapper:function(t){this.wrapper=t},getContainer:function(){return this.$container&&this.$container.length||(this.$container=$("head")),this.$container}},window.$injector=new e(function(t){return"$(function() { "+t+"});"})}()},CNqx:function(t,e){t.exports=_},EZrL:function(t,e){function n(){if(-1!==["million","jackpot","admiral"].indexOf(CONFIG_GLOBAL.sg))if(CONFIG_GLOBAL.isAuth)if(CONFIG_GLOBAL.isMobile)window.location.replace("/wheel_of_fortune");else{$("#js-fortune-wrapper").remove();var t=$('
');t.append($('
')),t.appendTo("body"),$.ajax({url:"/wheel_of_fortune",type:"GET",data:{block_to_render:"template-1"}}).then(function(e){var n=e["template-1"];t.html(n)})}else CONFIG_GLOBAL.isMobile?popup_show("registration"):popup_show("go_auth")}$(document).on("click",".js-add-to-bookmarks",function(){var t=document.title.substr(0).split(" .:.")[0],e="http://"+document.location.host;if(document.all)window.external.AddFavorite(e,t);else if(window.sidebar&&window.sidebar.addPanel)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){var n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("title",t),n.setAttribute("rel","sidebar"),n.click()}else alert("Нажмите «Ctrl+D», чтобы добавить страницу в закладки");return!1}),$(document).on("click",".js-show-user-profile, .user-profile",function(t){if(void 0===window.UserProfile)return!0;var e=$(this).data("uid")||$(this).prop("rel"),n={x:t.pageX,y:t.pageY};UserProfile.showPopup(e,n)}).on("click",function(t){if(void 0===window.UserProfile)return!0;var e=$(t.target);e.closest(".users-profile").length||e.is(".js-show-user-profile, .user-profile")||UserProfile.hideAllPopups()}),$(renderMoney),$(document).on("click",".js-show-notice",function(t){t.preventDefault();var e=$(this),n=e.data("message"),o=e.data("type")||"success";n&&new Notice({message:n},{type:o}).show()}).on("click",".js-tracker",function(t){processTracker(t.target)}).on("click",".js-fortune-open",function(t){t.preventDefault(),n()}).on("click",".js-fortune-close",function(){$("#js-fortune-wrapper").remove()}),$(document).on("click",".js-show-reg-mobile",function(t){return t.preventDefault(),popup_show("registration"),!1}).on("click",".js-show-auth-mobile",function(t){return t.preventDefault(),popup_show("registration",{tab:"authorization"}),!1}),window.addEventListener("load",function(){"#wheel-of-fortune"===location.hash&&n(),"#popup-preview"===location.hash&&openPopupPreview()})},EzVi:function(t,e){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.repeat||(String.prototype.repeat=function(t){"use strict";if(null==this)throw new TypeError("can't convert "+this+" to object");var e=""+this;if((t=+t)!=t&&(t=0),t<0)throw new RangeError("repeat count must be non-negative");if(t==1/0)throw new RangeError("repeat count must be less than infinity");if(t=Math.floor(t),0==e.length||0==t)return"";if(e.length*t>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="";1==(1&t)&&(n+=e),0!=(t>>>=1);)e+=e;return n}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,o=function(){},i=function(){return n.apply(this instanceof o&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return o.prototype=this.prototype,i.prototype=new o,i}),void 0===Array.prototype.indexOf&&(Array.prototype.indexOf=function(t){for(var e,n=0;e=this[n];n++)if(e===t)return n;return-1}),Array.prototype.map||(Array.prototype.map=function(t,e){var n,o,i;if(null==this)throw new TypeError(" this is null or not defined");var r=Object(this),s=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),o=new Array(s),i=0;i>>0,i=0;if(2==arguments.length)e=arguments[1];else{for(;i=o)throw new TypeError("Reduce of empty array with no initial value");e=n[i++]}for(;i1&&(this.$placeholder=this.$placeholder.eq(0),console.warn("Selector "+this.options.selector+" returns more than one element on the page. The first one is chosen."))},show:function(){this.context.message&&this.$placeholder.html(this.getMessageHtml()),this.$placeholder.removeClass(e.classesList.join(" ")).addClass(this.getType()).on("click",".js-close-notice",this.hide.bind(this)).on("click",".js-call-ajax-get",function(){$.get($(this).data("url"),$(this).data())}).show(0,function(){this.options.scroll&&this.scroll(),this.options.hide&&this.setHide()}.bind(this))},getMessageHtml:function(){return"
"+this.context.message+"
"},scroll:function(){$scroller.scrollToElem(this.$placeholder,this.options.speed,this.options.topOffset)},getType:function(){return this.options.type?this.options.type:this.context.result?"success":"error"},hide:function(){var t=this.$placeholder;t.hide(400,function(){t.empty()})},setHide:function(){var t=this.options.hide,e=Number.isNaN(t)?5e3:t,n=this;t&&setTimeout(function(){n.hide()},e)},setOption:function(t,e){return this.options[t]=e,this}},window.Notice=e}()},GjIb:function(t,e){!function(t){function e(){}e.switchTo=function(t){var e=$.Deferred();return $.post("/user/account/mode/"+t+".json").always(function(t){if(200==t.state)e.resolve(t.data);else{var n=t.error&&t.error.common?t.error.common:{sysname:"unknown",message:"Неизвестная ошибка!"};e.reject(n)}}),e.promise()},window.Account=e}()},H6AC:function(t,e,n){(function(t){!function(e){function n(){this.words={}}n.prototype={plural:function(t,e){if("object"!=typeof e||!e.length||e.length<3||isNaN(t))return"";if(0==(t=Math.floor(t)))return e[2];if((t=Math.abs(t))-Math.floor(t)>0)return e[1];return t%100>4&&t%100<20||t%10==0?e[2]:e[[2,0,1,1,1,2][Math.min(t%10,5)]]},addWord:function(t,e){this.words[t]=e},getCased:function(e,n){if(!this.words[e])throw new Error('No word with alias "'+e+'" found.');if(t.isUndefined(n)&&(n="nom"),!this.words[e][n])throw new Error("Undefined case given "+n+' for word with alias "'+e+'"');return this.words[e][n]}},window.$inflector=new n}()}).call(this,n("CNqx"))},I68K:function(t,e,n){(function(t){window.Jackpot=function(t,e){"use strict";var n=function(t){this.options={},this.jackpot=null,this.template=null,this.containerId=null,this.interval=null,this.durationLiveAlteredSum=null,this.defaultOptions={jackpot:{format:"11 000 ₽",sum:1540621},interval:1e4,durationLiveAlteredSum:600,containerId:"jackpot_container",template:'
'},t=t||{},Object.assign(this.options,this.defaultOptions,t)};return n.prototype={init:function(){var t=this;this.template=t.parseHTML(t.options.template),t.initJackpot(),setInterval(function(){t.generateJackpotSum()},this.options.interval)},initJackpot:function(){let t=this.getSavedSum("j"+this.options.containerId);this.options.jackpot.sum-1?"&":"?")+"language="+t},setSourceLang:function(t){return this.sourceLang=t,this},setMessages:function(t,e){return this.messages[t]||(this.messages[t]={}),$.extend(this.messages[t],e),this},isSourceCurrent:function(){return this.sourceLang===this.currentLocale},getText:function(e,n){if(this.isSourceCurrent())return e;if(!this.messages[this.currentLocale])return console.error("No messages for current locale "+this.currentLocale),e;var o;if(this.messages[this.currentLocale][e]?o=this.messages[this.currentLocale][e]:(console.error('No translation for given message "'+e),o=e),void 0!==n){var i=e.match(/[^{}]+(?=\})/g);t.each(i,function(t){n[t]||console.error("No parameter "+t+" for message: ",e),o=o.replace("{"+t+"}",n[t]||"")})}return o||(console.error("No messages for current locale "+this.currentLocale+" for given alias "+e),e)}},e})},KPGs:function(t,e,n){(function(t){Pod.declare("jQuery",$),window.extend=function(e,n){var o,i=this;o=e&&t.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)},t.extend(o,i,n);var r=function(){this.constructor=o};return r.prototype=i.prototype,o.prototype=new r,e&&t.extend(o.prototype,e),o.__super__=i.prototype,o},window.yandexGetScriptPromise=function(){return $.getScript("//yandex.st/share/share.js")},window.resend_code=function(t){$.ajax({url:"/actions/confirm/resend_code",type:"POST",async:!1,success:function(e){t?window.location.href="/confirm#repeat":window.location.reload()}})},window.paramsToElements=function(t,e,n){for(var o in n=n||"",e)if(e.hasOwnProperty(o)){var i=n?n+"["+o+"]":o,r=e[o];if(r instanceof Object)paramsToElements(t,r,i);else{var s=document.createElement("input");s.setAttribute("name",i),s.setAttribute("value",r),t.appendChild(s)}}},window.setCookie=function(t,e,n,o){var i=new Date;i.setDate(i.getDate()+n);var r=o?"":"path=/; ",s=escape(e)+(null==n?"":";"+r+" expires="+i.toUTCString());document.cookie=t+"="+s},window.save_tracker=function(t,e){saveTracker(t,e)},window.saveTracker=function(t,e){t&&(e=void 0!==e&&e,$.ajax({url:"/actions/save_tracker",async:e,cache:!1,type:"GET",data:{t:t},success:function(t){}}))},saveTracker=function(t,e,n){var o={};void 0===n&&(n=0);var i=function(){var i=[].slice.call(arguments),r=i[n];return void 0===r?t.apply(this,i):o[r]?void 0:(o[r]=!0,setTimeout(function(){delete o[r]},e),t.apply(this,i))};return i.original=t,i}(saveTracker,500,0),$(document).on("click",".js-show-popup",function(){var t=$(this),e=t.data("popup"),n=$paramsParser.parse(t.data("popup-params"));return processTracker(this),e&&popup_show(e,n),!1}),window.str_pad=function(t,e,n,o){var i,r="",s=function(t,e){for(var n="";n.length0&&("STR_PAD_LEFT"==o?t=s(n,i)+t:"STR_PAD_RIGHT"==o?t+=s(n,i):"STR_PAD_BOTH"==o&&(t=(t=(r=s(n,Math.ceil(i/2)))+t+r).substr(0,e))),t},window.plural=function(t,e){if("object"!=typeof e||!e.length||e.length<3||isNaN(t))return"";if(0==t)return e[2];if((t=Math.abs(t))-Math.floor(t)>0)return e[1];return t%100>4&&t%100<20||t%10==0?e[2]:e[[2,0,1,1,1,2][Math.min(t%10,5)]]},window.number_format=function(t,e,n,o){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+t)?+t:0,r=isFinite(+e)?Math.abs(e):0,s=void 0===o?" ":o,a=void 0===n?",":n,c="";return(c=(r?function(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}(i,r):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length1&&(!/Object/.test(Object.prototype.toString.call(e))||null===e||void 0===e)){if(n=$.extend({},n),null!==e&&void 0!==e||(n.expires=-1),"number"==typeof n.expires){var o=n.expires,i=n.expires=new Date;i.setDate(i.getDate()+o)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",n.raw?e:encodeURIComponent(e),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var r,s=(n=e||{}).raw?function(t){return t}:decodeURIComponent,a=document.cookie.split("; "),c=0;r=a[c]&&a[c].split("=");c++)if(s(r[0])===t)return s(r[1]||"");return null}),window.newWindow=function(t,e,n,o,i){if("/actions/livecasino/ezugi"==t.substr(0,25)&&!CONFIG_GLOBAL.isAuth){var r=t.match(/tracker=([\d\w_-]*)/g);return r&&$.get("/actions/ajax/save/tracker?"+r),popup_show("go_auth",{data:"?redirect_to=/live",page_monitor_params:"livecasino"})}var s=screen.width/2-n/2,a={toolbar:"no",location:"no",directories:"no",status:"no",menubar:"no",scrollbars:"no",resizable:"no",copyhistory:"no",width:n,height:o,top:screen.height/2-o/2,left:s};return i=$.param($.extend(a,i||{})).replace(/&/g,", "),window.open(t,e,i)},window.liveChatII=function(){if("undefined"!=typeof LiveTex)LiveTex.showWelcomeWindow();else if($(".sh_btn").length)return $(".sh_btn").click(),!1},window.RandomPage=function(t){var e=t,n=t.length,o=1+Math.random()*(n+1-1);o^=0,document.location.href=e[o-1]},window.performPopupCloseAction=function(t){return!!t&&("/"!==t.substr(0,1)&&"http"!==t.substr(0,4)||location.href===t?(window.eval(t),!1):(location.assign(t),!0))},window.cashierRedirectPath=null,window.redirectable=!0,window.cashierRedirectConditions=function(t){var e=t.target,n=$(e).closest("a"),o=n.data("href"),i=n.attr("target"),r=n.attr("href");-1==r.indexOf("/cashier")&&"cashier"!=o&&"_blank"!=i&&(t.preventDefault(),popup_show("cashier_leave"),cashierRedirectPath=r)},window.cashierSubmit=function(t){redirectable=!1,$("button[type=submit], input[type=submit]",t).attr("disabled",!0).addClass("disabled");t.attr("target"),$("input[name=sum]",t).val(),$("input[name=method]",t).val();t.get(0).submit()},window.warning=function(){return redirectable?(setTimeout(function(){$(window).off("beforeunload"),-1!=location.pathname.indexOf("qiwi")&&($("#cashier-phone").val(userNumber).focusout(),$("#cashier-sum").val(bonusQiwiSum+1).focusout(),$("#bonus_sum").addClass("hide"))},2e3),"Вы действительно хотите покинуть кассу?\nУ нас для Вас приготовлены специальные бонусы!"):null},$(document).on("click",".js-show-livechat",function(){return processTracker(this),liveChatII(),!1}),window.processTracker=function(t){var e=$(t).data("tracker");e&&saveTracker(e)},window.cashier_mini=function(t){return window.open("/cashier_mini"+(t?"/forms/"+t:""),"cashier_mini","width=800, height=650, scrollbars=1, left="+Math.round(screen.width/2-400)+", top="+Math.round(screen.height/2-350)),!1},window.popup_show_from_banner=function(t,e,n,o){processTracker(t),popup_show(e,n,o)},window.isIframe=function(){return window!==top},window.getIframeParent=function(){return top},window.isIframeParentHavingSameDomain=function(){try{top.document}catch(t){return!1}return!0},window.isControlSystem=function(){return(isIframe()?window.parent.location.href:window.location.href).indexOf("control_system")>0},window.preloadImagesFromHtml=function(t){var e=[];return $("img",t).each(function(t,n){e.push(n.src)}),preloadImages(e)},window.preloadImages=function(t){for(var e,n=[],o=0;e=t[o];o++)n=loadImage(e);return $.when.apply(this,n)},window.loadImage=function(t){var e=new Image,n=$.Deferred();return e.onerror=e.onload=function(){n.resolve()},e.src=t,n.promise()},window.addTracker=function(t,e){return-1===t.indexOf("?")?t+="?tracker="+e:t+="&tracker="+e,t},window.isMoneyInString=function(t){return/^\$\s?(\d{1,3}\s?)+([.,]\d+)?$/.test(t)},window.renderMoney=function(){Pod.require(["jQuery","Funds","HtmlHelper"],function(t,e,n){t(".js-money").each(function(o,i){var r=t(i),s=i.tagName.toLowerCase(),a={};t.each(i.attributes,function(){this.specified&&(a[this.name]=this.value)}),a.class&&(a.class=a.class.replace("js-money","")),r.replaceWith(n.moneyTag(s,new e(r.data("usd-amount"),e.TYPE_USD,1),r.html(),a))})})},function(){var t=function(t,e){return e},e=function(t){return t};$.fn.combine=function(n,o){var i={};return n||(n=t),o||(o=e),this.each(function(t,e){i[n(e,t)]=o(e,t)}),i}}(),window.getCookie=function(t){var e=" "+document.cookie,n=" "+t+"=",o=null,i=0,r=0;return e.length>0&&-1!=(i=e.indexOf(n))&&(i+=n.length,-1==(r=e.indexOf(";",i))&&(r=e.length),o=unescape(e.substring(i,r))),o},window.deleteCookie=function(t){document.cookie=t+"=; expires="+new Date(0).toUTCString()},window.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},$.fn.preventNonNumber=function(){this.on("keydown",function(t){return!t.shiftKey&&(!(void 0!=t&&(t.keyCode<48||t.keyCode>57)&&(t.keyCode<96||t.keyCode>105)&&(t.keyCode<37||t.keyCode>40)&&46!=t.keyCode&&8!=t.keyCode&&9!=t.keyCode&&13!=t.keyCode&&35!=t.keyCode&&36!=t.keyCode&&229!=t.keyCode)||(t.preventDefault(),!1))})},window.show_load_kcaptcha=function(){$("#kcaptcha").css("visibility","visible")},function(){var t=1;window.reload_kcaptcha=function(e){$("#kcaptcha").css("visibility","hidden"),e||(e="#kcaptcha"),$(e).attr("src","/actions/kcaptcha/?c="+t++)}}()}).call(this,n("CNqx"))},aeDL:function(t,e){!function(t){function e(){this.defaultOffset=0,this.timeoutID=t}function n(){return window.pageYOffset}function o(t){return t.offset().top}e.prototype.scrollTo=function(t,e){var n=$(t).eq(0);return this.scrollToElem(n,e)},e.prototype.scrollToElem=function(t,e,i){(t=$(t)).length&&function t(e,o){e||(e=500);var i=Math.round(e/10),r=1;n()>o&&(r=-r);r>0&&(o=function(t){var e=$(document).height(),n=window.innerHeight;t+n>e&&(t=e-n);return t}(o));!function t(e,o,i,r,s){var a=Math.min(e,o);window.scrollTo(0,n()+r*a);if(0===$(window).scrollTop())return;e>0?(window.$scroller.timeoutID&&clearTimeout(window.$scroller.timeoutID),window.$scroller.timeoutID=setTimeout(function(){t(e-a,o,i,r,s)},i)):s()}(Math.abs(o-n()),i,10,r,function(){Math.abs(n()-o)>10&&t(e,o)})}(e,o(t)-this.getOffset(i))},e.prototype.scrollToUpperElem=function(t,e,i){if((t=$(t)).length&&!(o(t)>n()))return this.scrollToElem(t,e,this.getOffset(i))},e.prototype.getOffset=function(t){return void 0!==t?t:this.defaultOffset},e.prototype.setDefaultOffset=function(t){this.defaultOffset=t},window.$scroller=new e}()},akRN:function(t,e,n){(function(t){!function(e){function n(t){if(!(this instanceof n))return new n(t);for(var e in this.jackpotSelectors={},this.selectors=[],t)t.hasOwnProperty(e)&&(this.selectors.push(t[e]),this.jackpotSelectors[e]={},this.jackpotSelectors[e].selector=t[e],this.jackpotSelectors[e].sum=this.parseSingleSum(e));this.fetchSums=this.fetchSums.bind(this),this.timeouts=[setTimeout(this.fetchSums,5e3),setTimeout(this.fetchSums,15e3),setTimeout(this.fetchSums,35e3),setTimeout(this.fetchSums,6e4)],this.disabled=!1}n.prototype={parseSingleSum:function(t){return $(this.getJp(t).selector).html()},renderSingleSum:function(t){var e=this.getJp(t),n=$(e.selector);n.html(e.sum),e.title&&n.attr("title",e.title)},getJp:function(t){return this.jackpotSelectors[t]||{}},resetAllSums:function(t,e){for(var n in t)t.hasOwnProperty(n)&&(!t[n]||void 0===e&&this.getJp(n).sum==t[n].value||(this.getJp(n).sum=t[n].value,this.getJp(n).title=t[n].title,this.renderSingleSum(n)))},isEmpty:function(){return!$(this.selectors.join()).length},fetchSums:function(t){this.isEmpty()||this.disabled||(this.$xhr=$.ajax({type:"POST",url:"/actions/jackpot/sums",dataType:"json",context:this,success:function(e){this.resetAllSums(e,t)}}))},disable:function(){console.log("disabling"),t.each(this.timeouts,clearTimeout),this.disabled=!0,this.$xhr&&this.$xhr.abort()},enable:function(){this.disabled=!1}},window.JackpotSumFetcher=n}(),function(){var t;function e(){return t||(window.$jpSumFetcher=t=new JackpotSumFetcher({kingly:".js-jackpot-kingly",progressive:".js-jackpot-progressive",heady:".js-jackpot-heady",mistery:".js-jackpot-mistery",elite:".js-jackpot-elite",royal:".js-jackpot-royal",forest:".js-jackpot-forest",newyear:".js-jackpot-newyear",luck:".js-jackpot-luck",adventure:".js-jackpot-adventure",classical:".js-jackpot-classical",travels:".js-jackpot-travels",super:".js-jackpot-super"})),t}$(document).on("jackpotRefresh",function(t){e().fetchSums(t)}),$(function(){e().fetchSums()})}()}).call(this,n("CNqx"))},hThI:function(module,exports){!function(undefined){function ParamsParser(){}function isObjectParams(t){return"{"===t.substr(0,1)&&"}"===t.substr(-1,1)}ParamsParser.prototype.parse=function(textData,defaults){var components,data={};if(defaults||(defaults={}),void 0===textData)data={};else if("object"==typeof textData)data=textData;else{if(!isObjectParams(textData))return textData;components=textData.replace(/^({)(.*)(})$/g,"$2").trim().split(",");for(var i=0,comp;comp=components[i];i++){var parts=comp.trim().split(":"),name=parts[0].trim(),value=eval(parts[1]);data[name]=value}}return $.extend({},defaults,data)},window.$paramsParser=new ParamsParser}()},muUI:function(t,e){Pod.define("HtmlHelper",["Funds"],function(t){var e="money()";function n(n,o,i){if(!(n instanceof t))throw new TypeError("Argument #0 must be an instance of Funds");void 0===o&&(o=e);var r=CONFIG_GLOBAL.userCurrency,s=function(t){var n=(t+"").match(/money\((.*)\)/);return{format:n?n[1]:"",placeholder:n?n[0]:e}}(o);return i=i||{},-1===[t.TYPE_USD,n.currency.code].indexOf(r.code)&&(i.title=n.exchange(r.code,r.rate).ceil().format("%F").replace(/ /g," ")),{content:o.replace(s.placeholder,n.format(s.format)),options:i}}function o(){}return o.moneySpan=function(t,e,i){var r=n(t,e,i);return o.span(r.content,r.options)},o.moneyA=function(t,e,i,r){var s=n(t,e,r);return o.a(s.content,i,s.options)},o.moneyTag=function(t,e,i,r){var s=n(e,i,r);return o.tag(t,s.content,s.options)},o.span=function(t,e){return o.tag("span",t,e)},o.a=function(t,e,n){return e&&((n=n||{}).href=e),o.tag("a",t,n)},o.tag=function(t,e,n){var o=$("<"+t+"/>");if("object"==typeof n)for(var i in n)n.hasOwnProperty(i)&&o.attr(i,n[i]);return e&&o.html(e),o[0]},o})},pfky:function(t,e,n){(function(t){!function(){var e=function(t){$.extend(this,{baseUrl:"",defaultBaseUrl:""},t),this.cache={}};e.prototype.getByName=function(t,e,n){var o,i,r=$.Deferred(),s=this.cache,a=!1;return $.isPlainObject(t)&&(e=t.isDefault,a=void 0!==t.inline?t.inline:a,i=t.id,t=t.path),o=this.getBaseUrl(e)+t,a?(i=i||o,r.resolve(this.getById(i)).promise()):(void 0===e&&(e=!1),s[t]?"string"==typeof s[t]?(n?r.resolveWith(n,[s[t]]):r.resolve(s[t]),r.promise()):s[t]:(-1===o.indexOf(/\.\w^/)&&(o+=".html"),$.ajax(o+"?"+CONFIG_GLOBAL.fileCache,{cache:!0,success:function(e){s[t]=e,n?r.resolveWith(n,[e]):r.resolve(e)}}),s[t]=r.promise()))},e.prototype.getById=function(t){if(!this.cache[t]){var e=document.getElementById("template-"+t);if(!e)throw new Error("No inline template has been found for name: "+t);this.cache[t]=e.innerHTML}return this.cache[t]},e.prototype.getPartial=function(e,n,o){t.isUndefined(o)&&(o=!0);var i=$(this.getById(e)).find(n);return(o?i.get(0).outerHTML:i.html()).replace("<","<").replace(">",">")},e.prototype.getBaseUrl=function(t){return t?this.defaultBaseUrl:this.baseUrl},e.create=function(t){return new e(t)},window.TemplateFactory=e}()}).call(this,n("CNqx"))},uqdV:function(t,e){function n(t,e){void 0==e||""==e?e=window.location.href:(-1!=e.indexOf("?redirect_to=")&&(e=e.replace("?redirect_to=","")),0!=e.indexOf("http")&&(e=window.location.protocol+"//"+window.location.hostname+e));var n=screen.availWidth/2-320,o=screen.availHeight/2-240;window.open(CONFIG_GLOBAL.socialAuthDomain+t+"?redirect_url="+encodeURIComponent(e),"Авторизация","width=640,height=480,toolbar=no,left="+n+",top="+o)}$(function(){-1!=window.location.pathname.indexOf("/user/auth/error")&&-1!=window.location.pathname.indexOf("/error/access")&&-1!=window.location.pathname.indexOf("/registration")?("?redirect_to="+window.location.pathname+window.location.hash,$(window).bind("hashchange",function(){"?redirect_to="+window.location.pathname+window.location.hash})):window.location.search}),window.MailruConnect=function(t,e){n("mailru",t)},window.FbConnect=function(t,e){n("facebook",t)},window.YandexConnect=function(t,e){n("yandex",t)},window.VKConnect=function(t,e){n("vk",t)},window.OdklConnect=function(t,e){n("odkl",t)},window.TwttrConnect=function(t,e){n("twttr",t)},window.OdklConnect=function(t,e){n("odkl",t)},window.OdklConnect=function(t,e){n("odkl",t)},window.GmailConnect=function(t,e){n("gmail",t)}},vwUM:function(t,e){!function(t){function e(){}e.prototype={init:function(){$(document).on("click",".js-tip-novice-close",function(){$(this).closest(".js-tip-novice-wrapper").toggleClass("active")})},open:function(t){for(var e,n=0;e=t[n];n++){var o=$(".js-tip-novice-wrapper[data-type='"+e+"'] .js-tip-novice-close").first();if(o.length){o.trigger("click"),this.log(e);break}}},log:function(t){$.get("/actions/ajax/show_tip?name="+t)}},window.$noviceTips=new e,$noviceTips.init()}()},x8Ys:function(t,e,n){(function(t){!function(e){function n(t){this.setOptions(t),this.init(),this.bindEvents()}n.extend=extend,n.prototype=$.extend({init:function(){var t=Pod.require("Helpers");this.helpersCollection=new t(this.helpers)},addEvent:function(t,e){this.events[t]=e},bindEvents:function(){var e=this;this.events||(this.events={}),t.each(this.events,function(e,n){t.isString(e)&&(e=this[e]),this.bind(n,$.proxy(e,this))},this),this.viewEvents||(this.viewEvents={}),t.each(this.viewEvents,function(t,n){var o=n.split(" "),i=o.shift(),r=o.join(" ");this.$placeholder.on(i,r,function(n){return e[t].call(e,this,n)})},this)},getHelpers:function(t){return this.helpersCollection.getAll()},getHelper:function(t){return this.getHelpers()[t]},getOption:function(t){return void 0!==this.options[t]?this.options[t]:null},setOption:function(t,e){this.options[t]=e},setOptions:function(t){this.options=t||{},this.options.data&&(this.data=this.options.data,delete this.options.data),this.$placeholder=$(this.getOption("placeholder"))},getTemplate:function(){return $templateFactory.getByName(this.getOption("template"),!1,this)},getViewData:function(){var t=$.Deferred(),e=this;return this.data?t.resolveWith(this,[this.data]):this.requestData().done(function(n){n.helpers=e.getHelpers(),n.self=e,e.data=n,e.trigger("afterRequest",n),t.resolveWith(e,[n])}),t.promise()},setData:function(t){this.data=t},clear:function(){this.data=null},requestData:function(){return this.trigger("beforeRequest")?$.ajax(this.getUrl(),{context:this,dataType:"json",method:"get"}):$.Deferred().reject().promise()},getUrl:function(){return this.addCacheToUrl(this.getOption("url"))},addCacheToUrl:function(t){var e=this.getOption("cache");return e&&(t+="?fileCache="+e),t},populateRendered:function(t){this.$placeholder.html(t)},render:function(){var e=this;return $.when(this.getTemplate(),this.getViewData()).done(function(n,o){this[0].trigger("beforeRender")&&(e.populateRendered(t.template(n)(o)),this[0].trigger("afterRender"))})}},Events);var o=0;n.create=function(t){return t.cid=o++,new this(t)},window.Widget=n,Pod.declare("Widget",n)}()}).call(this,n("CNqx"))}});